<?php


class SelectUserPrivileges extends Connection {
	private $conn;

	public function __construct() {
		Connection::init();
		$this->conn = $this->getConnection();
	}



	public function extractPrivileges($id){
		$stmt = $this->conn->prepare("	select privileges
											from user_privileges
											where id =  ?");
		$stmt->bindValue(1, (int)$id, PDO::PARAM_INT);
		$stmt->execute();

		return $stmt->fetchColumn();
	}

}
?>